//
//  SRBoundHandRingTableViewCell.m
//  SportRing
//
//  Created by icelee on 14-11-2.
//  Copyright (c) 2014年 HotOne. All rights reserved.
//

#import "SRBoundHandRingTableViewCell.h"
#import "UITextField(Additionals).h"

@interface SRBoundHandRingTableViewCell()

@property (nonatomic, weak)IBOutlet UITextField *handRingIDTextField;
@property (nonatomic, weak)IBOutlet LGButton *handRingBoundButton;
@property (nonatomic, weak)IBOutlet UIView *handRingBoundBackgroundView;


@end

@implementation SRBoundHandRingTableViewCell

- (void)awakeFromNib
{
    [super awakeFromNib];
    [self.handRingIDTextField addLeftPadding:2];
}

- (void)setBoundHandRing:(NSString *)handRing
{
    [_handRingIDTextField setText:handRing];
}


- (IBAction)boundHandRing:(id)sender
{
    if (_boundDelegate && [_boundDelegate respondsToSelector:@selector(boundHandRing:)])
    {
        [_boundDelegate boundHandRing:self.handRingIDTextField.text];
        
    }

}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
